from typing import TypedDict, Union, Dict, Any

class VideoResponse(TypedDict):
    """视频处理响应类型"""
    text: str
    usage: Union[Dict[str, int], None]

class VideoConfig(TypedDict):
    """视频配置类型"""
    max_size: int
    allowed_types: list[str]
    allowed_extensions: list[str]

class ProcessingResult(TypedDict):
    """处理结果类型"""
    success: bool
    data: Union[VideoResponse, None]
    error: Union[str, None] 